home *** CD-ROM | disk | FTP | other *** search
-
-
-
- mmmmkkkkttttiiiimmmmeeee((((3333CCCC)))) mmmmkkkkttttiiiimmmmeeee((((3333CCCC))))
-
-
-
- NNNNAAAAMMMMEEEE
- _mmmm_kkkk_tttt_iiii_mmmm_eeee - converts a _tttt_mmmm structure to a calendar time
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_tttt_iiii_mmmm_eeee_...._hhhh_>>>>
-
- _tttt_iiii_mmmm_eeee______tttt _mmmm_kkkk_tttt_iiii_mmmm_eeee _((((_ssss_tttt_rrrr_uuuu_cccc_tttt _tttt_mmmm _****_tttt_iiii_mmmm_eeee_pppp_tttt_rrrr_))))_;;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _mmmm_kkkk_tttt_iiii_mmmm_eeee converts the time represented by the _tttt_mmmm structure pointed to by
- _t_i_m_e_p_t_r into a calendar time (the number of seconds since 00:00:00 UTC,
- January 1, 1970).
-
- The _tttt_mmmm structure has the following format.
-
- _ssss_tttt_rrrr_uuuu_cccc_tttt _tttt_mmmm _{{{{
- _iiii_nnnn_tttt _tttt_mmmm______ssss_eeee_cccc_;;;; _////_**** _ssss_eeee_cccc_oooo_nnnn_dddd_ssss _aaaa_ffff_tttt_eeee_rrrr _tttt_hhhh_eeee _mmmm_iiii_nnnn_uuuu_tttt_eeee _[[[[_0000_,,,, _6666_1111_]]]] _****_////
- _iiii_nnnn_tttt _tttt_mmmm______mmmm_iiii_nnnn_;;;; _////_**** _mmmm_iiii_nnnn_uuuu_tttt_eeee_ssss _aaaa_ffff_tttt_eeee_rrrr _tttt_hhhh_eeee _hhhh_oooo_uuuu_rrrr _[[[[_0000_,,,, _5555_9999_]]]] _****_////
- _iiii_nnnn_tttt _tttt_mmmm______hhhh_oooo_uuuu_rrrr_;;;; _////_**** _hhhh_oooo_uuuu_rrrr _ssss_iiii_nnnn_cccc_eeee _mmmm_iiii_dddd_nnnn_iiii_gggg_hhhh_tttt _[[[[_0000_,,,, _2222_3333_]]]] _****_////
- _iiii_nnnn_tttt _tttt_mmmm______mmmm_dddd_aaaa_yyyy_;;;; _////_**** _dddd_aaaa_yyyy _oooo_ffff _tttt_hhhh_eeee _mmmm_oooo_nnnn_tttt_hhhh _[[[[_1111_,,,, _3333_1111_]]]] _****_////
- _iiii_nnnn_tttt _tttt_mmmm______mmmm_oooo_nnnn_;;;; _////_**** _mmmm_oooo_nnnn_tttt_hhhh_ssss _ssss_iiii_nnnn_cccc_eeee _JJJJ_aaaa_nnnn_uuuu_aaaa_rrrr_yyyy _[[[[_0000_,,,, _1111_1111_]]]] _****_////
- _iiii_nnnn_tttt _tttt_mmmm______yyyy_eeee_aaaa_rrrr_;;;; _////_**** _yyyy_eeee_aaaa_rrrr_ssss _ssss_iiii_nnnn_cccc_eeee _1111_9999_0000_0000 _****_////
- _iiii_nnnn_tttt _tttt_mmmm______wwww_dddd_aaaa_yyyy_;;;; _////_**** _dddd_aaaa_yyyy_ssss _ssss_iiii_nnnn_cccc_eeee _SSSS_uuuu_nnnn_dddd_aaaa_yyyy _[[[[_0000_,,,, _6666_]]]] _****_////
- _iiii_nnnn_tttt _tttt_mmmm______yyyy_dddd_aaaa_yyyy_;;;; _////_**** _dddd_aaaa_yyyy_ssss _ssss_iiii_nnnn_cccc_eeee _JJJJ_aaaa_nnnn_uuuu_aaaa_rrrr_yyyy _1111 _[[[[_0000_,,,, _3333_6666_5555_]]]] _****_////
- _iiii_nnnn_tttt _tttt_mmmm______iiii_ssss_dddd_ssss_tttt_;;;; _////_**** _ffff_llll_aaaa_gggg _ffff_oooo_rrrr _dddd_aaaa_yyyy_llll_iiii_gggg_hhhh_tttt _ssss_aaaa_vvvv_iiii_nnnn_gggg_ssss _tttt_iiii_mmmm_eeee _****_////
- _}}}}_;;;;
-
- In addition to computing the calendar time, _mmmm_kkkk_tttt_iiii_mmmm_eeee normalizes the
- supplied _tttt_mmmm structure. The original values of the _tttt_mmmm______wwww_dddd_aaaa_yyyy and _tttt_mmmm______yyyy_dddd_aaaa_yyyy
- components of the structure are ignored, and the original values of the
- other components are not restricted to the ranges indicated in the
- definition of the structure. On successful completion, the values of the
- _tttt_mmmm______wwww_dddd_aaaa_yyyy and _tttt_mmmm______yyyy_dddd_aaaa_yyyy components are set appropriately, and the other
- components are set to represent the specified calendar time, but with
- their values forced to be within the appropriate ranges. The final value
- of _tttt_mmmm______mmmm_dddd_aaaa_yyyy is not set until _tttt_mmmm______mmmm_oooo_nnnn and _tttt_mmmm______yyyy_eeee_aaaa_rrrr are determined.
-
- The original values of the components may be either greater than or less
- than the specified range. For example, a _tttt_mmmm______hhhh_oooo_uuuu_rrrr of -1 means 1 hour
- before midnight, _tttt_mmmm______mmmm_dddd_aaaa_yyyy of 0 means the day preceding the current month,
- and _tttt_mmmm______mmmm_oooo_nnnn of -2 means 2 months before January of _tttt_mmmm______yyyy_eeee_aaaa_rrrr.
-
- If _tttt_mmmm______iiii_ssss_dddd_ssss_tttt is positive, the original values are assumed to be in the
- alternate timezone. If it turns out that the alternate timezone is not
- valid for the computed calendar time, then the components are adjusted to
- the main timezone. Likewise, if _tttt_mmmm______iiii_ssss_dddd_ssss_tttt is zero, the original values
- are assumed to be in the main timezone and are converted to the alternate
- timezone if the main timezone is not valid. If _tttt_mmmm______iiii_ssss_dddd_ssss_tttt is negative, the
- correct timezone is determined and the components are not adjusted.
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- mmmmkkkkttttiiiimmmmeeee((((3333CCCC)))) mmmmkkkkttttiiiimmmmeeee((((3333CCCC))))
-
-
-
- Local timezone information is used as if _mmmm_kkkk_tttt_iiii_mmmm_eeee had called _tttt_zzzz_ssss_eeee_tttt.
-
- _mmmm_kkkk_tttt_iiii_mmmm_eeee returns the specified calendar time. If the calendar time cannot
- be represented, the function returns the value (_tttt_iiii_mmmm_eeee______tttt)-1.
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEE
- What day of the week is July 4, 2001?
-
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_tttt_dddd_iiii_oooo_...._hhhh_>>>>
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_tttt_iiii_mmmm_eeee_...._hhhh_>>>>
-
- _ssss_tttt_aaaa_tttt_iiii_cccc _cccc_hhhh_aaaa_rrrr _****_cccc_oooo_nnnn_ssss_tttt _wwww_dddd_aaaa_yyyy_[[[[_]]]] _==== _{{{{
- _""""_SSSS_uuuu_nnnn_dddd_aaaa_yyyy_""""_,,,, _""""_MMMM_oooo_nnnn_dddd_aaaa_yyyy_""""_,,,, _""""_TTTT_uuuu_eeee_ssss_dddd_aaaa_yyyy_""""_,,,, _""""_WWWW_eeee_dddd_nnnn_eeee_ssss_dddd_aaaa_yyyy_""""_,,,,
- _""""_TTTT_hhhh_uuuu_rrrr_ssss_dddd_aaaa_yyyy_""""_,,,, _""""_FFFF_rrrr_iiii_dddd_aaaa_yyyy_""""_,,,, _""""_SSSS_aaaa_tttt_uuuu_rrrr_dddd_aaaa_yyyy_""""_,,,, _""""_----_uuuu_nnnn_kkkk_nnnn_oooo_wwww_nnnn_----_""""
- _}}}}_;;;;
- _ssss_tttt_rrrr_uuuu_cccc_tttt _tttt_mmmm _tttt_iiii_mmmm_eeee______ssss_tttt_rrrr_;;;;
- _////_****_...._...._...._****_////
- _tttt_iiii_mmmm_eeee______ssss_tttt_rrrr_...._tttt_mmmm______yyyy_eeee_aaaa_rrrr _==== _2222_0000_0000_1111 _---- _1111_9999_0000_0000_;;;;
- _tttt_iiii_mmmm_eeee______ssss_tttt_rrrr_...._tttt_mmmm______mmmm_oooo_nnnn _==== _7777 _---- _1111_;;;;
- _tttt_iiii_mmmm_eeee______ssss_tttt_rrrr_...._tttt_mmmm______mmmm_dddd_aaaa_yyyy _==== _4444_;;;;
- _tttt_iiii_mmmm_eeee______ssss_tttt_rrrr_...._tttt_mmmm______hhhh_oooo_uuuu_rrrr _==== _0000_;;;;
- _tttt_iiii_mmmm_eeee______ssss_tttt_rrrr_...._tttt_mmmm______mmmm_iiii_nnnn _==== _0000_;;;;
- _tttt_iiii_mmmm_eeee______ssss_tttt_rrrr_...._tttt_mmmm______ssss_eeee_cccc _==== _1111_;;;;
- _tttt_iiii_mmmm_eeee______ssss_tttt_rrrr_...._tttt_mmmm______iiii_ssss_dddd_ssss_tttt _==== _----_1111_;;;;
- _iiii_ffff _((((_mmmm_kkkk_tttt_iiii_mmmm_eeee_((((_&&&&_tttt_iiii_mmmm_eeee______ssss_tttt_rrrr_))))_====_==== _----_1111_))))
- _tttt_iiii_mmmm_eeee______ssss_tttt_rrrr_...._tttt_mmmm______wwww_dddd_aaaa_yyyy_====_7777_;;;;
- _pppp_rrrr_iiii_nnnn_tttt_ffff_((((_""""_%%%%_ssss_\\\\_nnnn_""""_,,,, _wwww_dddd_aaaa_yyyy_[[[[_tttt_iiii_mmmm_eeee______ssss_tttt_rrrr_...._tttt_mmmm______wwww_dddd_aaaa_yyyy_]]]]_))))_;;;;
-
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- _cccc_tttt_iiii_mmmm_eeee(3C), _gggg_eeee_tttt_eeee_nnnn_vvvv(3C), _tttt_iiii_mmmm_eeee_zzzz_oooo_nnnn_eeee(4).
-
- NNNNOOOOTTTTEEEESSSS
- _tttt_mmmm______yyyy_eeee_aaaa_rrrr of the _tttt_mmmm structure must be for year 1970 or later. Calendar
- times before 00:00:00 UTC, January 1, 1970 or after 03:14:07 UTC, January
- 19, 2038 cannot be represented.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-